package org.apache.solr.spelling.suggest.tst;

import org.apache.lucene.search.suggest.Lookup;
import org.apache.lucene.search.suggest.tst.TSTLookup;
import org.apache.solr.common.util.NamedList;
import org.apache.solr.core.SolrCore;
import org.apache.solr.spelling.suggest.LookupFactory;

/**
 * Factory for {@link TSTLookup}
 */
public class TSTLookupFactory extends LookupFactory {

    private static final String FILENAME = "tst.dat";

    @Override
    public Lookup create(NamedList params, SolrCore core) {
        return new TSTLookup();
    }

    @Override
    public String storeFileName() {
        return FILENAME;
    }
}
